namespace CSharpPro2_0918
{
    public class Phone
    {
        public string Brand { get; set; }
        public int Weight { get; set; }
        public long Camera { get; set; }
        public int Price { get; set; }
  
        public Phone(string brand, int weight, long camera, int price)
        {
            Brand = brand;
            Weight = weight;
            Camera = camera;
            Price = price;
        }

        public override string ToString()
        {
            return $"品牌：{Brand}\n重量：{Weight}g\n后置摄像头像素：{Camera}\n价格：{Price}";
        }
    }
      
}